cd docs
multi-file-swagger ./index.yaml > ./index.json
cd ..
info=$(swagger validate ./docs/index.json)
err= info | grep errors
echo $err
if [ -n "$err" ]; then
echo $info
exit 0
fi
swagger generate model --model-package=apis -f ./docs/index.json